﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Whisper.CommonTypes;
using Whisper.Interfaces;

namespace Whisper.UI.Win.UserControls
{
    public partial class AddConversationControl : UserControl, ICreateConversationClientView
    {
        public AddConversationControl()
        {
            InitializeComponent();
        }

        public event EventHandler SubmitConversation;
        public string ConversationName
        {
            get { return this.conversationNameTextBox.Text; }
            set { this.conversationNameTextBox.Text = value; }
        }


        private void createConversationButton_Click(object sender, EventArgs e)
        {
            SubmitConversation(this, new EventArgs());
        }
    }
}
